﻿using System;
using System.Runtime.Serialization;
using System.Xml.Serialization;

namespace FinMkts.CFD.Rest
{
    [XmlRoot("InstrumentDC")]
    [DataContract(Name = "Instrument")]
    public class InstrumentDC
    {
        [XmlAttribute("Id")]
        [DataMember]
        public Guid Id { get; set; }

        /// <summary>
        /// The name of this instrument
        /// </summary>
        [XmlAttribute("Name")]
        [DataMember]
        public string Name { get; set; }

        /// <summary>
        /// Used to buy and sell this instrument, typically a currency but can be something else, e.g. Gold
        /// </summary>
        [XmlAttribute("CurrencyCode")]
        [DataMember]
        public string CurrencyCode { get; set; }

        [XmlAttribute("Type")]
        [DataMember]
        public string Type { get; set; }
    }
}
